#include "mainwindow.h"
#include "ui_mainwindow.h"

#include <qqtuserlistcontainer.h>

MainWindow::MainWindow ( QWidget* parent ) :
    QMainWindow ( parent ),
    ui ( new Ui::MainWindow )
{
    ui->setupUi ( this );

    QQtUserListContainer* t0 = new QQtUserListContainer ( this );
    connect ( t0, SIGNAL ( signalUserInfoChanged ( QQtDictionary ) ),
              this, SLOT ( slotRecvUserInfoChanged ( QQtDictionary ) ) );
}

MainWindow::~MainWindow()
{
    delete ui;
}

void MainWindow::slotRecvUserInfoChanged ( const QQtDictionary& dict )
{
    ui->textBrowser->clear();
    ui->textBrowser->append ( dict.toJson ( QJsonDocument::Indented ) );
}
